package lesson02;

public class TestMain3 {
    public static void main(String[] args) {
        Animal a1 = new Animal();
        a1.type = "动物";
        a1.move();

        Dog a2 = new Dog();
        a2.type = "狗"; // 继承了父类的属性
        a2.move(); // 继承父类的行为
    }
}
